'''
Created on Nov 29, 2010

@author: dexen
'''

from my_ind import MyInd

def dev_cond(ind):
    assert isinstance(ind, MyInd)
    return ind.is_alive() and ind.genotype != None and ind.phenotype == None

def evalA_cond(ind):
    assert isinstance(ind, MyInd)
    return ind.is_alive() and ind.phenotype != None and ind.evalA == None

def evalB_cond(ind):
    assert isinstance(ind, MyInd)
    return ind.is_alive() and ind.phenotype != None and ind.evalB == None

def feedback_cond(ind):
    assert isinstance(ind, MyInd)
    return ind.is_alive() and ind.evalA != None and ind.evalB != None
